import service from "../../request";

//分页查询
export function getAssociationCouncil(query){
    return service({
        method:'get',
        url:'/bsAssociationCouncils/page',
        params:query
    })
}
//添加理事会成员
export function addAssociationCouncil(formData) {
    return service({
        method: "post",
        url: '/bsAssociationCouncils',
        data: formData
    })
}

//编辑理事会成员
export function updateAssociationCouncil(formData) {
    return service({
        method: "put",
        url: '/bsAssociationCouncils/'+formData.id,
        data: formData
    })
}

//定义删除方法
export function deleteAssociationCouncil(id) {
    return service({
        method: "delete",
        url: '/bsAssociationCouncils/'+id
    })
}